#!/bin/bash
#mail it-arch
#date 2022/2/24
#function initial system:del user
for USERA in daemon adm lp shutdown halt uucp operator games gopher
do
	for USERB in `awk -F':' '{print $1}' /etc/passwd`
	do
		if [ "$USERA" == "$USERB" ];then
		/usr/sbin/userdel -r $USERA
       		echo "success del $USERA">>/tmp/userdel.log
		fi
	done
done
